#include <stdio.h>

//https://www.nowcoder.com/practice/d84e8339f9444bb6b29bd3f227c8e538?tpId=290&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D1%26tpId%3D290%26type%3D290

int main() {
    int num = 0;
    while(~scanf("%d", &num)) {
        for (int count = 1; count <= num; count++) {
            for (int i = num - count; i; i--) {
                printf(" ");
            }
            for (int i = 1; i <= count; i++) {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}